package updown.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


/**
 * <p>Title: ww.kaixin.downupservice.config </p>
 * <p>Description:to-22-6-1: -  </p>
 *
 * @Author:jiangkaixin
 * @Date:2021/12/20
 * @Version: 1.0
 */
@Configuration
@Data
@ConfigurationProperties(value = "downup")
public class CommonConfig {

    /**
     * common:
     *   script:
     *     startScriptPrefix: start_
     *     scriptSuffix: .sh
     *     killScript: killp.sh
     *     scriptPath: /opt/app
     *   jar:
     *     jarPath: /opt/app*/


    @Value("${downup.script.startScriptPrefix}")
    public String startScriptPrefix;

    @Value("${downup.script.scriptSuffix}")
    public String scriptSuffix;

    @Value("${downup.script.killScript}")
    public String killScript;

    @Value("${downup.script.killNineScript}")
    public String killNineScript;

    @Value("${downup.script.scriptPath}")
    public String scriptPath;

    @Value("${downup.jar.jarPath}")
    public String jarPath;

    @Value("${downup.jar.deleteJarForHour}")
    public Integer deleteJarForHour;
}
